package com.example.test622.detail

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.replace
import com.example.common.mvi.BaseFragment
import com.example.common.mvi.BaseViewModel
import com.example.net.entity.SimpleVideoEntity
import com.example.test622.R
import com.example.test622.databinding.FragmentDetailDescriptBinding


class DetailDescriptFragment : BaseFragment<FragmentDetailDescriptBinding,BaseViewModel<*,*>>() {
	val data by lazy {
		arguments?.getParcelable<SimpleVideoEntity>("data")
	}
	private lateinit var homeDetailRecommonFragment:HomeDetailRecommonFragment
	init {
		homeDetailRecommonFragment = HomeDetailRecommonFragment()
	}
	
	override fun initView() {
	binding.video = data
	parentFragmentManager.beginTransaction().replace(R.id.detail_recommon,homeDetailRecommonFragment).commitAllowingStateLoss()
	}
	
	override fun initData() {
	
	}
	
}